//
//  TMOpenURLMacro.m
//  TMOpenURL
//
//  Created by Anshu Chimala on 1/3/10.
//  Copyright 2010 Home. All rights reserved.
//

#import "TMOpenURLMacro.h"

@implementation TMOpenURLMacro
@synthesize delegate = _delegate;

- (NSString *)title {
	return @"Open URL in Browser";
}

- (NSString *)author {
	return @"Anshu Chimala";
}

- (NSString *)description {
	return @"Launch a URL in your favorite web browser.";
}

- (NSString *)beforeText {
	return @"N/A";
}

- (NSString *)afterText {
	return @"N/A";
}

- (void)processText:(NSString *)text {
	_delegate.shouldPasteAfterwards = NO;
	[[NSWorkspace sharedWorkspace] openURL:[NSURL URLWithString:text]];
	[_delegate macro:self didProcessTextWithResult:nil];
}

@end
